package com.merry.spring5.di;

/**
 * @author ybzou
 * 依赖注入的方式：
 *      1.setter方式注入：最好使用这种方式注入。
 *      2.构造器注入
 */
public class Book {
    private String name;
    private String auth;
    private String other;

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuth() {
        return auth;
    }

    public void setAuth(String auth) {
        this.auth = auth;
    }

    public Book() {
    }

    public Book(String name, String auth) {
        this.name = name;
        this.auth = auth;
    }
}
